#0 [10501]PDOException in PDOConnection.php line 836

SQLSTATE[HY000] [2002] Connection refused

  1. } else {
  2. if ($this->reConnectTimes < 4 && $this->isBreak($e)) {
  3. $this->reConnectTimes++;
  4. return $this->close()->getPDOStatement($sql, $bind, $master, $procedure);
  5. }
  6. }
  7. if ($e instanceof \PDOException) {
  8. throw new PDOException($e, $this->config, $this->getLastsql());
  9. } else {
  10. throw $e;
  11. }
  12. }
  13. }
  14. /**
  15. * 执行语句.
  16. *

Call Stack

  1. in PDOConnection.php line 836
  2. at PDOConnection->getPDOStatement() in PDOConnection.php line 746
  3. at PDOConnection->pdoQuery() in PDOConnection.php line 923
  4. at PDOConnection->find() in BaseQuery.php line 1462
  5. at BaseQuery->find() in route.php line 124
  6. at Config->{closure}() in Container.php line 295
  7. at Container->invokeFunction() in Container.php line 359
  8. at Container->invoke() in Callback.php line 27
  9. at Callback->exec() in Dispatch.php line 52
  10. at Dispatch->run() in Route.php line 755
  11. at Route->think\{closure}() in Pipeline.php line 59
  12. at Pipeline->think\{closure}() in Pipeline.php line 66
  13. at Pipeline->then() in Route.php line 756
  14. at Route->dispatch() in Http.php line 208
  15. at Http->dispatchToRoute() in Http.php line 198
  16. at Http->think\{closure}() in Pipeline.php line 59
  17. at Pipeline->think\{closure}() in MultiApp.php line 51
  18. at MultiApp->think\app\{closure}() in Pipeline.php line 59
  19. at Pipeline->think\{closure}() in Pipeline.php line 66
  20. at Pipeline->then() in MultiApp.php line 52
  21. at MultiApp->handle()
  22. at call_user_func() in Middleware.php line 134
  23. at Middleware->think\{closure}() in Pipeline.php line 85
  24. at Pipeline->think\{closure}() in SessionInit.php line 58
  25. at SessionInit->handle()
  26. at call_user_func() in Middleware.php line 134
  27. at Middleware->think\{closure}() in Pipeline.php line 85
  28. at Pipeline->think\{closure}() in Pipeline.php line 66
  29. at Pipeline->then() in Http.php line 199
  30. at Http->runWithRequest() in Http.php line 162
  31. at Http->run() in index.php line 25

Exception Datas

PDO Error Info
SQLSTATE HY000
Driver Error Code 2002
Driver Error Message Connection refused
Database Status
Error Code 10501
Error Message SQLSTATE[HY000] [2002] Connection refused
Error SQL
Database Config
type mysql
hostname 127.0.0.1
database 16757com
hostport 3306
dsn
params []
charset utf8
prefix wdphp_
deploy 0
rw_separate false
master_num 1
slave_no
read_master false
fields_strict true
fields_cache true
trigger_sql true
builder
query
break_reconnect false
break_match_str []
auto_param_bind true
schema_cache_path /www/wwwroot/www.16757.com/runtime/schema/

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER www
HOME /home/www
HTTP_X_FORWARDED_PROTO https
HTTP_X_REAL_IP 47.76.153.81
HTTP_CONNECTION close
HTTP_X_FORWARDED_FOR 220.181.57.216,47.76.153.81
HTTP_CLIENT_IP 220.181.57.216
HTTP_REFERER http://www.baidu.com/search/spider.html
HTTP_ACCEPT */*
HTTP_USER_AGENT Mozilla/5.0 (compatible; Baiduspider/2.0; +http://www.baidu.com/search/spider.html)
PATH_INFO
HTTP_HOST www.16757.com
REDIRECT_STATUS 200
SERVER_NAME www.16757.com
SERVER_PORT 443
SERVER_ADDR 103.26.78.158
REMOTE_PORT 37664
REMOTE_ADDR 111.173.80.27
SERVER_SOFTWARE nginx/1.27.1
GATEWAY_INTERFACE CGI/1.1
HTTPS on
REQUEST_SCHEME https
SERVER_PROTOCOL HTTP/1.1
DOCUMENT_ROOT /www/wwwroot/www.16757.com/public
DOCUMENT_URI /index.php
REQUEST_URI //so/%20%E8%8C%B6%E5%85%B7%E5%8F%91%E5%B1%95%E5%8E%86%E5%8F%B2.html
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING s=/so/%20%E8%8C%B6%E5%85%B7%E5%8F%91%E5%B1%95%E5%8E%86%E5%8F%B2.html
SCRIPT_FILENAME /www/wwwroot/www.16757.com/public/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1731364101.859
REQUEST_TIME 1731364101